<?php
/**
 *
 *
 *
 */
interface Yz_Module_WebModule_Interface
    extends Yz_Module_Interface
{

    /**
     *  @return controller|false
     */
    public function route(Yz_Array $args, Yz_Hash $post=null);

    /**
     *  @return controller
     */
    public function routeError(Yz_Exception $ex);

    /**
     *  @return string
     */
    public function getWebPath();
    /**
     *  @param string
     *  @return this
     */
    public function setWebPath($path);

    /**
     *  @return Yz_Template_Interface&
     *  @throw TemplateNotFound ...
     */
    public function selectTemplate($templateName);

}
